﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChequeManagement.Validation
{
    class TextComponent
    {

        public IValidationStrategy ValidationStrategy
        {
            get;
            set;
        }
        public string FieldPar
        {
            get;
            set;
        }
        public string Message
        {
            get
            {
                return ValidationStrategy.Message;
            }
        }

        public bool Validate()
        {
            return ValidationStrategy.Validate(FieldPar);
        }
    }
}
